#ifndef SRI_COMM_DEFINE_H
#define SRI_COMM_DEFINE_H

    float forcex;
	#include<stdio.h>
	#include<stdlib.h>
	#include<string.h>
	#include <iostream>

	#include<errno.h>
	#include<sys/types.h>
	#include<sys/socket.h>
	#include <sys/ioctl.h>
	#include<netinet/in.h>
	#include<arpa/inet.h>
	#include<netinet/tcp.h>
	#include<unistd.h>

	#include <thread>
	#include <mutex>

	#include <ctime>
	#include <sys/time.h>        //gettimeofday()

	#include <vector>
	#include <algorithm>

#include <functional>
    int switch01 = 1;
	typedef std::function<bool(std::string)> SRICommNetworkFailureCallbackFunction;
	typedef std::function<bool(std::string)> SRICommATCallbackFunction;
	typedef std::function<bool(float fx, float fy, float fz, float mx, float my, float mz)> SRICommM8218CallbackFunction;

	typedef  unsigned char BYTE;
    BYTE* sensordatabuffer;
	#ifndef mymax
	#define mymax(a,b)            (((a) > (b)) ? (a) : (b))
	#endif

	#ifndef mymin
	#define mymin(a,b)            (((a) < (b)) ? (a) : (b))
	#endif

#endif
